<template>
	<view class="pageheader">
		<view style="width: 100rpx;color:#1698DC;text-align: center;font-size: 0.66rem;">
			<view style="width: 80px;height: 44px;" @click="clickback"></view>
		</view>
		<view style="width: 100rpx;text-align: center;
			color:#1698DC;font-size: 0.65rem;" name="left">
			<view v-if="closecardflag">关闭</view>
		</view>
		<view style="width: 350rpx;text-align: center;font-size: 0.77rem;"
			name="title">{{title}}</view>
		<view style="width: 100rpx;text-align: center;">
			
		</view>
		<view style="width: 100rpx;font-size: 0.65rem;" 
				name="right">
				<view v-if="checkflag">审阅</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'backheader',
		
		props: {
			closecardflag:{
				type:Boolean,
				default:false,
			},
			checkflag:{
				type:Boolean,
				default:false,
			},
			// 提供一些默认值, 以及必传值
			title:{
				type: String,
				default: '标题',
				required: true
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			clickback(e){
				uni.navigateBack({
					
				})
			}
		}
	}
</script>

<style>

.pageheader{
	height:44px;
	display: flex;
	line-height: 44px;
	position: absolute;
	top: 120;
	z-index: 999;
}
</style>
